<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		//函数的提升优于变量的提升
		test();
		var a=2;
		function test(){
			console.log(a);
		}
	</script>
</html>
